﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DNASequencing.core.data.simple
{
    /// <summary>
    /// Simple Data Tree class, only for forward searching.
    /// </summary>
    class SimpleDT : ADataTree
    {
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="inputData">List of oligonucleotides as Strings.</param>
        public SimpleDT(List<String> inputData)
        {
            _nRoot = new Node();
            _lsAll = new List<AOligonucleotide>();

            foreach (String sequence in inputData)
            {
                Oligonucleotide temp = new Oligonucleotide(sequence);

                _nRoot.add(temp);
                _lsAll.Add(temp);
            }
        }
    }
}
